<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var str = "123456";
			var reg = /[0-9]/;
			console.log(str.match(reg));
			var str = "Mondy";
			var reg = /Mon/;
			console.log(str.match(reg) + "123545");
			var str = "2015-3-1";
			var reg = /[0-9]/;
			console.log(str.match(reg));
			var reg = /[0-9]+/g;
			var str = "hello321595-69-95";
			console.log(str.match(reg));
			var reg = /banana$/;
			var str = "monkey and banana";
			console.log(str.match(reg));
			var reg = /^13[0-9]{9}$/;
			var str = "13102659873";
			console.log(str.match(reg));
			var str = "2018-80-20 17:40:45";
			var reg = /[0-9]+/g;
			console.log(str.match(reg));
			var reg = /\d+/g;
			var str = "2018/8/20";
			console.log(str.match(reg));
			var reg = /\D+/g;
			var str = "this is java1807%^&#$";
			console.log(str.match(reg));
			
			var reg = /\Bis\b/;
			var str = "hi is this a book";
//			var newStr = str.replace(reg, "at");
			console.log(str.match(reg));
			
			
		</script>
	</body>
</html>
